package com.zyl.bean;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Note {
	private Integer id;
	private Long date;
	private String note;

	
	
	public Note(String note) {
		super();
		this.note = note;
		this.date=System.currentTimeMillis();
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Long getDate() {
		return date;
	}

	@Override
	public String toString() {
		 Date d=new Date(date);
		 SimpleDateFormat sdf =new SimpleDateFormat("MM/dd HH:mm E");
		return  sdf.format(d) + " " + note + "";
	}

	public void setDate(Long date) {
		this.date = date;
	}
}
